package com.magic.zhixin.repository;

import com.magic.zhixin.entity.QuestionBank;
import com.magic.zhixin.entity.UserQuestion;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface QuestionBankRepository extends JpaRepository<QuestionBank,Long>{
    List<QuestionBank> findByCreateUserIdIsNull();

    List<QuestionBank> findByCreateUserId(Long userId);

    QuestionBank findByCreateUserIdAndName(Long id, String name);
}
